package com.atguigu.gmall.feign.cart;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.cart.CartItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 卡尼奶
 * @Date 2022/6/1 20:10
 * @Version 1.0
 */
@RequestMapping("/rpc/inner")
@FeignClient("service-cart")
public interface CartFeignClient {

    @PostMapping("/addToCart/{skuId}")
    public Result<CartItem> addToCart(@PathVariable("skuId")Long skuId,
                                      @RequestParam("skuNum")Integer skuNum);
}
